package com.xf.system.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xf.system.common.model.UserRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xiefengf
 * @version 1.0
 * @date 2024/2/1 18:16
 */
@Repository
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 通过角色id查询已分配的用户数量
     * @param roleIdList 角色id集合
     * @return 执行结果
     */
    Integer countUserRoleByRid(@Param("roleIdList") List<Long> roleIdList);

}
